package com.zwj.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * 
 * @TableName conversation
 */
@TableName(value ="conversation")
@Data
public class Conversation implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    @TableField("username_1")
    private String username1;

    /**
     * 
     */
    @TableField("username_2")
    private String username2;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    public Conversation(String username1, String username2) {
        this.username1 = username1;
        this.username2 = username2;
    }
}